package com.culture.config.common.util;

import org.apache.commons.codec.digest.DigestUtils;

import lombok.experimental.UtilityClass;

@UtilityClass
public class HashUtil {
    public String md5Hex(String plainText){
        return DigestUtils.md5Hex(plainText);
    }

    public String sha256Hex(String plainText){
        return DigestUtils.sha256Hex(plainText);
    }

    public String sha512Hex(String plainText){
        return DigestUtils.sha512Hex(plainText);
    }
}
